package br.com.sgc.entities.medico;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import br.com.sgc.entities.geral.Clinica;

@Entity
@Table(name="plano_saude", schema="medico")
public class PlanoSaude implements Serializable{

	private static final long serialVersionUID = -109940516598640596L;
	
	
	@Id
	@SequenceGenerator(sequenceName="medico.seq_plano_saude", name="SEQ", allocationSize=1)
	@GeneratedValue(strategy=GenerationType.SEQUENCE,  generator="SEQ")
	private Long id;
	private String nomePlanoSaude;
	
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name="clinica_id")
	private Clinica clinica = new Clinica();

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getNomePlanoSaude() {
		return nomePlanoSaude;
	}

	public void setNomePlanoSaude(String nomePlanoSaude) {
		this.nomePlanoSaude = nomePlanoSaude;
	}

	public Clinica getClinica() {
		return clinica;
	}

	public void setClinica(Clinica clinica) {
		this.clinica = clinica;
	}

	
}
